package cn.yzgy.yzgyoa.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 参数表

 * </p>
 *
 * @author Yqsen
 * @since 2020-11-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_params")
public class SysParams extends Model<SysParams> {

    private static final long serialVersionUID = 1L;

    /**
     * 参数ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 参数-名称
     */
    private String keyName;

    /**
     * 参数-值
     */
    private String value;

    /**
     * 参数模块名
     */
    private String paramGourpName;

    /**
     * 参数模块ID
     */
    private Integer paramGroupId;

    /**
     * 参数类型 0-系统参数 1-用户参数
     */
    private Boolean paramType;

    /**
     * 参数中文名
     */
    private String paramName;

    /**
     * 备注
     */
    private String comment;

    private LocalDateTime updateTime;

    private String field1;

    private String field2;

    private String field3;

    private Integer field4;

    private LocalDateTime field5;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
